<style>
.shequ-new{
	padding-bottom:50px;
}


.tab-content{
	margin-top:6px;
}

.user-btn{
	padding-bottom:0px;
}
</style>
<div id="market-seach">
		<div class="uinn" >
	            <div class="c-wh uinput ub ub-f1  bc-border uba  uc-a1  ub-ac  " style="padding:5px;border:none" >
	                <input ng-model="community.search" placeholder="输入您要搜索的标题" id="search" type="text" class=" ub-f1 ulev sc-text ub-ac ulev-1" style="padding-left:10px" >
	                <div ng-click="community.searchArticle()" id="search-act" class="uinn icon-my-search sc-text " ></div>
	            </div>
	    </div>
	</div>
<div class="wrapper cl-b-lgrey wrapper-shequ-det">
	    <div class="index-swiper swiper-container">
			<div class="swiper-wrapper" >
		        <div class="swiper-slide" ng-repeat ="banner in community.banners" ng-click="goParameter(banner.ad_link, 'fade',0)"   >
		        <img  src="{{community.adUrl}}{{banner.ad_code}}">
		        </div>
		    </div> 
		    <div class="swiper-pagination"></div>
	    </div>
		<div class="cl-b-lgrey user-btn btn-con-scroll">
			<a class="cl-b-white btn clickable {{community.catAllActive}}" ng-click="community.changeCat('ALL','ALL')" ><span>全部</span></a>
			<a ng-repeat="item in community.articleCat" class="cl-b-white btn clickable {{item.active}} "  ng-click="community.changeCat(item.cat_id,$index)" ><span>{{item.cat_name}}</span></a>
		</div>
		<div class="cl-b-lgrey user-btn btn-con-scroll">
			<a ng-repeat="item in community.articleCa" class="cl-b-white btn clickable {{item.active}} "  ng-click="community.changeCat(item.cat_id,$index)" ><span>{{item.cat_name}}</span></a>
		</div>
		
		<div class="tab-content">
			<ul class="shequ-new tab1 fadeIn" infinite-scroll='community.nextPage()' infinite-scroll-disabled='community.busy' infinite-scroll-distance='1'>
				<li class="ub ub-ver cl-b-white index-item f12" ng-repeat="item in community.articles" ng-click="goParameter('/article_info', 'fade',item.article_id)" >
					<p class="f16">{{item.title}}</p>
					<div class="index-img">
						<img src="{{community.baseUrl}}{{item.file_url}}" class="lazy">
					</div>
					<p class="cl-f-grey f14">{{item.description}}</p>
					<p class="index-img-bottom ub ub-pj">
						<span class="cl-f-lgrey">来自<span class="cl-f-lorange">{{item.cat_name}}</span></span>
						<span class="cl-f-lgrey">发布于{{item.add_time_show}}</span>
					</p>
				</li>
			</ul>
		</div>
	</div>
	<script>
		window.onload=function(){//防止直接路径
			if(!window.angular){
				window.location.href="/index.html";
				
			}
			
		}
	</script>
